import { defineConfig } from 'rollup'
import babel from 'rollup-plugin-babel';

export default defineConfig({
  input: 'src/index.js',
  output: {
    // code split 需要设置 output.dir
    dir: 'dist',
    // 单文件打包时可设置 file，设置 code split则需要打多包
    // file: 'dist/bundle.js',
    format: 'es',
  },
  plugins: [babel({ exclude: 'node_modules/**' })]
})